﻿using ERP.ERPSystem.WarehouseManagement.Dto;
using ERP.Team.WarehouseManagement;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace ERP.ERPSystem.WarehouseManagement
{
    /// <summary>
    /// 仓储管理-销售退货-xzc
    /// </summary>
    public interface ISalesReturnServices:IApplicationService
    {
        /// <summary>
        /// 新增销售退货
        /// </summary>
        /// <param name="salesrtrunsdto"></param>
        /// <returns></returns>
        Task<int> AddSalesReturns(SalesReturnsDto salesrtrunsdto);
        /// <summary>
        /// 更新销售退货
        /// </summary>
        /// <param name="salesrtrunsdto"></param>
        /// <returns></returns>
        Task<int> UpdateSalesReturns(SalesReturnsDto salesrtrunsdto);
        /// <summary>
        /// 删除销售退货
        /// </summary>
        /// <param name="salesrtrunsdto"></param>
        /// <returns></returns>
        Task DeleteSalesReturns(int id);
        /// <summary>
        /// 查询销售退货
        /// </summary>
        /// <param name="getissuingmaterialsdto"></param>
        /// <returns></returns>
        Task<List<SalesReturns>> GetSalesReturns(GetSalesReturnsDto getalesReturndto);
        /// <summary>
        /// 通过主键id查询到相对应销售退货
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<List<SalesReturns>> FindSalesReturns(int id);
        /// <summary>
        /// 批量删除销售退货
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> BatchDeleteSalesReturns(List<int> ids);
    }
}
